import "../styles/globals.css";
// INTERNAL IMPORT
import { VotingProvider } from "../context/Voter";
import NavBar from "../components/NavBar/NavBar";
// 引入 Next.js 相关的类型
import type { AppProps } from "next/app";

const MyApp = ({Component, pageProps}:AppProps) => (

    <VotingProvider>
        <div>
            <NavBar />
            <div>
                <Component {...pageProps} />
            </div>
        </div>
    </VotingProvider>
)

export default MyApp;